<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>软件工程教学网后台管理系统</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="backPage/css/login.css">
	<script type="text/javascript" language="javascript" src="forum/js/login.js">
	</script>
	<script type="text/javascript">
		function check(){  		
		var name= document.getElementById("name");
		var pwd= document.getElementById("pwd");
		var name =  name.value;
		var names=name.replace(/(^\s*)|(\s*$)/g, "");		
		    if(names==null || names==""){
		      alert("用户名为空请正确填写！");   
		      name.focus();
			  return false;			
		    }
		    var password = pwd.value;
		    var passwords=password.replace(/(^\s*)|(\s*$)/g, "");
		    if(passwords==null ||passwords==""){
		      alert("密码为空请正确填写！");   
		      pwd.focus();
			  return false;			
		    }
		    return true;
		 } 
	</script>
  </head>
  
  <body>
	<table width="100%" height="90%" border="0" cellspacing="0" cellpadding="0">
			<tr height="70px">
				<td height="44">
				</td>
			</tr>
			<tr>
				<td>
						<div class="con">
							<div class="login">
								<div class="b_left">
									<table border="0" width="100%" cellspacing="0" cellpadding="0"
										height="282">
										<tr>
											<td height="47" width="76">
											</td>
											<td height="47">
											</td>
											<td height="47" width="92">
											</td>
										</tr>
										<tr>
											<td width="76" height="113">
											</td>
											<td height="113" valign="top">
												<p style="text-align: left">
													<font color="#507EA4">公告：</font>
												</p><br/>
												<p id="title"></p><br/>
												<p id="notice" style="text-align: left"></p>
													<br/><br/><br/>
													<p style="text-align: left">
													  <font color="red" size="">
													  	<ul class="errorMessage">
															<li><span id="name_e"><s:property value="#name_e" /></span></li>
														</ul>
													  </font>
												</p>
											</td>
											<td width="92" height="113">
											</td>
										</tr>
										<tr>
											<td width="76">
											</td>
											<td>
											</td>
											<td width="92">
											</td>
										</tr>
									</table>
								</div>
								<div class="input" style="width: 336px; height: 315px">
									<div class="logo" style="width: 336px; height: 42px">
										<p style="text-align: center">
											<img src="backPage/images/a01.gif" height="45px">
											</p>
									</div>
									<table width="100%" border="0" cellspacing="0" cellpadding="0"
										class="logTb">
										<tr>
											<th style="text-align: center" valign="bottom">
												<div style="width: 335px; height: 31px">
													<font color="#507EA4"> <span lang="zh-cn"> <font
															size="3" style="font-size: 10.5pt">欢迎使软件工程教学网后台管理系统</font>
													</span>
													</font>
												</div>

											</th>
										</tr>
									</table>

									<table width="100%" border="0" cellspacing="0" cellpadding="0" class="logTb">
									<form name="login" id="login" method="post" action="backlogin.action" onSubmit="check()">
										<tr>
											<th width="65" height="52">
												帐号
											</th>
											<td>
												<input name="name" type="text" maxlength="26" id="name" class="input-border"></input>&nbsp;&nbsp;&nbsp;
											</td>
										</tr>
										<tr>
											<th width="65" height="47">
												密码
											</th>
			 					 			<td width="78%">
												<input name="pwd" type="password" maxlength="16" id="pwd" class="input-border"></input>
											</td>
										</tr>
										
										<tr>
											<th width="65">
											</th>
											<td style="line-height: 22px; padding-top: 0px; padding-left: 6px; padding-bottom: 5px;">

												<input type="submit" value=" " class="login-b"
													onMouseOver="this.className='login-b2'"
													onMouseDown="this.className='login-b3'"
													onMouseOut="this.className='login-b'" />
											</td>
										</tr>
										</form>
									</table>
									<div>
										<div class="Sel_Ver">
											<p style="text-align: left"></p>
												&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												<font color="#666666">&nbsp; </font>
												<font color="#717171"></font>
											<div class="choicewp">
											</div>
										</div>

										<p>
										</p>
										<p>
											<br>
										</p>
										<p>
										</p>
										<p>
											<font color="#507EA4"></font>
										</p>	
									</div>
								</div>
								<div class="b_right"></div>
							</div>
						</div>
				</td>
			</tr>
		</table>
  </body>
</html>
